package Computer;

public class UsbTest {

    public static void main(String[] args) {
        USB u = new USBUDisk("金士顿", 16);
        u.poweron();
        u.work();
        // >>>u.read();
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        USBUDisk d = (USBUDisk) u;
        d.read();
        d.write();
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        u.poweroff();

        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        MouseTarget f=new MouseTarget("鼠标");
        f.poweron();
        f.work();
        f.poweroff();
        System.out.println("*********************");
        Keyboard g=new Keyboard("键盘");
        g.poweron();
        g.work();
        g.poweroff();
    }

}
